package com.jingdianjichi.project.infra.basic.es;

import lombok.Data;
import org.elasticsearch.index.query.BoolQueryBuilder;
import org.elasticsearch.search.fetch.subphase.highlight.HighlightBuilder;
import org.elasticsearch.search.sort.SortOrder;


/**
 * ClassName:EsSearchRequest
 * Package:com.jingdianjichi.subject.infra.basic.es
 * Description:
 *
 * @Author fst
 * @Create 2025/1/5 14:41
 * @Version 1.0
 */
@Data
public class EsSearchRequest
{
    private BoolQueryBuilder bq;

    private String[] fields;

    private int from;

    private int size;

    private Boolean needScroll;

    private Long minutes;

    private String sortName;

    private SortOrder sortOrder;

    private HighlightBuilder highlightBuilder;
}
